package com.alstudio.utils.android.activity;

import android.app.Activity;
import android.view.ViewGroup;

public class ALActvityUtils {
	
	/**
	 * 清除指定activity中的所有View
	 * @param activity
	 */
	public static void clearAllView(Activity activity) {
		((ViewGroup) activity.findViewById(android.R.id.content))
				.removeAllViews();
		System.gc();
	}
}
